﻿<%@ Page Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true"
    CodeFile="PasswordReset.aspx.cs" Inherits="PasswordReset" Title="PasswordReset" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .Invalid
        {
            background: #FAF1F2 url(Images/error.jpg) no-repeat 10px 10px;
            border: 2px solid #C95A55;
            padding: 10px 20px 20px 55px;
            color: #C95A55;
            font-weight: bold;
            margin: 10px 0;
            text-align: left;
            margin-left: 95px;
        }
    </style>
    <div class="" id="main-content">
        <div class="body">
            <div class="body">
                <table id="main-body">
                    <tbody>
                        <tr>
                            <td class="content">
                                <div class="box-outer">
                                    <div class="box">
                                        <table>
                                            <tr>
                                                <td colspan="2">
                                                    <h3>
                                                        Reset Your Password</h3><br />
                                                </td>
                                               
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:ValidationSummary runat="server" ID="uxSummary" DisplayMode="BulletList" EnableClientScript="true"
                                                        HeaderText="<p>Please correct the following errors:</p>" ForeColor="#777777"
                                                        CssClass="Invalid" Width="300px" ValidationGroup="Passrecovery" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Password
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPassword" runat="server" Text="" Width="250px" ></asp:TextBox><br /><br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    PASSWORD again
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtPasswordAgain" runat="server" Text=""  Width="250px"></asp:TextBox><br /><br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                   
                                                </td>
                                                <td> <asp:Button ID="btnPassReset" runat="server" CausesValidation="true" CssClass="OrderDeatil"
                                                        Font-Bold="True" ForeColor="White" Text="Update" 
                                                        ValidationGroup="Passrecovery" onclick="btnPassReset_Click" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="txtPassword"
                                                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Passrecovery"
                                                        ForeColor="White">*</asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="passwordValidator" runat="server" ControlToValidate="txtPassword"
                                                        ValidationExpression="^\w{6,50}" ErrorMessage="Password must be atleast 6 character"
                                                        ToolTip="Password must be atleast 6 characters." ValidationGroup="Passrecovery"
                                                        ForeColor="White">*</asp:RegularExpressionValidator>
                                                    <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="txtPassword"
                                                        ControlToValidate="txtPasswordAgain" ErrorMessage="The Password and Confirmation Password must match."
                                                        ValidationGroup="Passrecovery" ForeColor="White">*</asp:CompareValidator>
                                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="txtPasswordAgain"
                                                        ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."
                                                        ValidationGroup="Passrecovery" ForeColor="White">*</asp:RequiredFieldValidator>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="box-inner">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
